#include "BasicCriticalSection.h"


namespace utility
{
	BasicCriticalSection::BasicCriticalSection(void)
	{
		InitializeCriticalSection( &m_cs );
	}

	BasicCriticalSection::~BasicCriticalSection(void)
	{
		DeleteCriticalSection( &m_cs );
	}

	void BasicCriticalSection::Lock()
	{
		EnterCriticalSection( &m_cs );
	}

	void BasicCriticalSection::UnLock()
	{
		LeaveCriticalSection( &m_cs );
	}
}
